
#include "Devices.h"

using namespace ttg::devices;

//--------------
//--- Device ---
//--------------

LogicalDeviceMap<std::pair<Device *, Api *>> *Device::devices_plus_apis = NULL;
std::vector<Device *> *Device::devices = NULL;

void Device::registerApi(Api *api)
{
	apis->add(api);
	(*getDevicesPlusApis())[LogicalDevice(getID(), api->getID())] = std::make_pair(this, api);
}
